package com.qa.dom.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 操作记录表
 * </p>
 *
 * @author cxj
 * @since 2018-04-24
 */
public class Operecode extends Model<Operecode> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 订单id
     */
	@TableField("order_id")
	private Integer orderId;
    /**
     * 时长
     */
	@TableField("time_length")
	private Float timeLength;
    /**
     * 价格
     */
	private BigDecimal price;
    /**
     * 老师uid
     */
	@TableField("teacher_id")
	private Integer teacherId;
    /**
     * 封面图片
     */
	private String img;
    /**
     * 使用时间
     */
	@TableField("create_date")
	private Date createDate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public Float getTimeLength() {
		return timeLength;
	}

	public void setTimeLength(Float timeLength) {
		this.timeLength = timeLength;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Integer getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(Integer teacherId) {
		this.teacherId = teacherId;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Operecode{" +
			", id=" + id +
			", orderId=" + orderId +
			", timeLength=" + timeLength +
			", price=" + price +
			", teacherId=" + teacherId +
			", img=" + img +
			", createDate=" + createDate +
			"}";
	}
}
